(function(){var Pe=document&&document.currentScript&&document.currentScript.src;(window.webpackJsonpruntime=window.webpackJsonpruntime||[]).push([[5],{eC3R:function(j,c,l){"use strict";l.r(c);var y=l("qeDE");l.d(c,"animation",function(){return y});var K=l("JGCB");l.d(c,"scrollResponder",function(){return K});var x=l("IN6v");l.d(c,"miniHeader",function(){return x});var I=l("9VKv");l.d(c,"facebookWidgets",function(){return I})},qeDE:function(j,c,l){"use strict";l.r(c),l.d(c,"init",function(){return Fe}),l.d(c,"initAnimations",function(){return M});var y={bounce:{defaultOptions:{easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},timeline:{0:{transform:"translate3d(0px, 0px, 0px) scaleY(1)"},20:{transform:"translate3d(0px, 0px, 0px)"},40:{transform:"translate3d(0px, -30px, 0px) scaleY(1.1)"},43:{transform:"translate3d(0px, -30px, 0px) scaleY(1.1)"},53:{transform:"translate3d(0px, 0px, 0px)"},70:{transform:"translate3d(0px, -15px, 0px) scaleY(1.05)"},80:{transform:"translate3d(0px, 0px, 0px) scaleY(0.95)"},90:{transform:"translate3d(0px, -4px, 0px) scaleY(1.02)"},100:{transform:"translate3d(0px, 0px, 0px) scaleY(1)"}}},flash:{timeline:{0:{opacity:"1"},25:{opacity:"0"},50:{opacity:"1"},75:{opacity:"0"},100:{opacity:"1"}}},pulse:{timeline:{0:{transform:"scale3d(1, 1, 1)"},50:{transform:"scale3d(1.05, 1.05, 1.05)"},100:{transform:"scale3d(1, 1, 1)"}}},rubberBand:{timeline:{0:{transform:"scale3d(1, 1, 1)"},30:{transform:"scale3d(1.25, 0.75, 1)"},40:{transform:"scale3d(0.75, 1.25, 1)"},50:{transform:"scale3d(1.15, 0.85, 1)"},65:{transform:"scale3d(0.95, 1.05, 1)"},75:{transform:"scale3d(1.05, 0.95, 1)"},100:{transform:"scale3d(1, 1, 1)"}}},shake:{timeline:{0:{transform:"translate3d(0, 0, 0)"},10:{transform:"translate3d(-10px, 0, 0)"},20:{transform:"translate3d(10px, 0, 0)"},30:{transform:"translate3d(-10px, 0, 0)"},40:{transform:"translate3d(10px, 0, 0)"},50:{transform:"translate3d(-10px, 0, 0)"},60:{transform:"translate3d(10px, 0, 0)"},70:{transform:"translate3d(-10px, 0, 0)"},80:{transform:"translate3d(10px, 0, 0)"},90:{transform:"translate3d(-10px, 0, 0)"},100:{transform:"translate3d(0, 0, 0)"}}},swing:{timeline:{0:{transform:"rotate3d(0, 0, 1, 0deg)"},20:{transform:"rotate3d(0, 0, 1, 15deg)"},40:{transform:"rotate3d(0, 0, 1, -10deg)"},60:{transform:"rotate3d(0, 0, 1, 5deg)"},80:{transform:"rotate3d(0, 0, 1, -5deg)"},100:{transform:"rotate3d(0, 0, 1, 0deg)"}}},tada:{timeline:{0:{transform:"scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg)"},10:{transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},20:{transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},30:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},40:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},50:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},60:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},70:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},80:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},90:{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},100:{transform:"scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg)"}}},wobble:{timeline:{0:{transform:"translate3d(0%, 0px, 0px) rotate3d(0, 0, 1, 0deg)"},15:{transform:"translate3d(-25%, 0px, 0px) rotate3d(0, 0, 1, -5deg)"},30:{transform:"translate3d(20%, 0px, 0px) rotate3d(0, 0, 1, 3deg)"},45:{transform:"translate3d(-15%, 0px, 0px) rotate3d(0, 0, 1, -3deg)"},60:{transform:"translate3d(10%, 0px, 0px) rotate3d(0, 0, 1, 2deg)"},75:{transform:"translate3d(-5%, 0px, 0px) rotate3d(0, 0, 1, -1deg)"},100:{transform:"translate3d(0%, 0px, 0px) rotate3d(0, 0, 1, 0deg)"}}},flipInX:{defaultOptions:{easing:"ease-in"},timeline:{0:{transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"},40:{transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},60:{transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},80:{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},100:{transform:"perspective(400px) rotate3d(1, 0, 0, 0deg)"}}},flipInY:{defaultOptions:{easing:"ease-in"},timeline:{0:{transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"},40:{transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},60:{transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},80:{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},100:{transform:"perspective(400px) rotate3d(0, 1, 0, 0deg)"}}},rollIn:{timeline:{0:{opacity:"0",transform:"translate3d(-100%, 0px, 0px) rotate3d(0, 0, 1, -120deg)"},100:{opacity:"1",transform:"translate3d(0%, 0px, 0px) rotate3d(0, 0, 1, 0deg)"}}},zoomInUp:{defaultOptions:{easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},timeline:{0:{opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0px, 1000px, 0px)"},60:{opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0px, -60px, 0px)"},100:{transform:"scale3d(1, 1, 1) translate3d(0px, 0px, 0px)"}}}},K=l("7uCZ"),x=l("J3gS"),I=l("DaUp"),B=l.n(I),X=l("8OQS"),b=l.n(X);function E(){return window.dmStr||window.parent.dmStr}function z(e,t){const i=e.startsWith("ui.")?e:`ui.ed.${e}`;let r=E()&&(E()[i]||E()[e])||e;return t&&Object.keys(t).forEach(o=>{r=r.replace(`{${o}}`,t[o])}),r}const W=["from"],U=["dir"],Y=["dir"],q=["dir"],f={ENTRANCE:"entrance",VIEWPORT:"viewport"},s=Object.values(f);function n(e){try{return z(e)}catch(t){return""}}function L(e=1){return{effect:"fade-in",options:{intensity:1,duration:e}}}function v(e,t=1){return{mix:[L(t),e]}}function T(e){let{from:t}=e;const r=(b()(e,W).intensity||1)*100;return{effect:"translate-2d",options:{use3d:!0,unit:"%",startX:t==="up"||t==="down"?0:r*(t==="right"?1:-1),endX:0,startY:t==="up"||t==="down"?r*(t==="up"?1:-1):0,endY:0}}}function Q(e){let{dir:t}=e,i=b()(e,U);return v(T(Object.assign({from:t},i)))}function J(e){let{dir:t}=e,i=b()(e,Y);return Z(T(Object.assign({from:t},i)))}function V(e){const t=e.intensity||1,i=e.dir,r=[i==="Y",i==="X",!1].map(a=>a?1:0).join(","),o=90*t;return v({effect:{timeline:{0:{transform:`rotate3d(${r}, -${o}deg)`},33:{transform:`rotate3d(${r}, -${o/3}deg)`},66:{transform:`rotate3d(${r}, -${o/9}deg)`},100:{transform:`rotate3d(${r}, 0deg)`}}}},.6)}function G(e){let{dir:t}=e,i=b()(e,q);return v({effect:t==="in-place"?"bounce":"bounce-in",options:{from:t==="in-place"?"":t,intensity:i.intensity||1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}},.6)}function Z(e){return{mix:[C(),e]}}function C(e){const t=(e==null?void 0:e.intensity)||1,i=t<=1?.3+.7*(1-t):.3/t;return v({effect:"scale",options:{from:i,to:1}},.5)}function H(e,t="center"){return v({effect:{timeline:{0:{transform:`rotate3d(0, 0, 1, ${e}deg)`,"transform-origin":`${t}`},100:{transform:"rotate3d(0, 0, 1, 0deg)"}}}})}function k(e){let t,i;switch(e.dir){case"topRight":{t=-45,i="left bottom";break}case"topLeft":{t=45,i="right bottom";break}case"bottomRight":{t=45,i="left bottom";break}case"bottomLeft":{t=-90,i="right bottom";break}default:t=-200,i="center"}return H(t*(e.intensity||1),i)}function ee(e){const t=(e==null?void 0:e.intensity)||1,i=e.dir==="right"?1:-1;return v({effect:{timeline:{0:{transform:`translate3d(${i*100*t}%, 0px, 0px) rotate3d(0, 0, 1, ${i*120*t}deg)`},100:{transform:"translate3d(0%, 0px, 0px) rotate3d(0, 0, 1, 0deg)"}}}})}function te(e){const t=(e==null?void 0:e.intensity)||1,i=[{rotate:0},{scaleSign:"-",rotate:-3},{scaleSign:"-",rotate:-3},{scaleSign:"+",rotate:3},{scaleSign:"+",rotate:-3},{scaleSign:"+",rotate:3},{scaleSign:"+",rotate:-3},{scaleSign:"+",rotate:3},{scaleSign:"+",rotate:-3},{scaleSign:"+",rotate:3},{scaleSign:1,rotate:0}],r=100/(i.length-1);return{effect:{timeline:i.reduce((a,d,m)=>{let u=1;switch(d.scaleSign){case"-":{u-=t/10;break}case"+":{u+=t/10;break}}const g=`scale3d(${u}, ${u}, ${u})`,p=`rotate3d(0, 0, 1, ${d.rotate*t}deg)`;return a[r*m]={transform:`${g} ${p}`},a},{})}}}function ne(e){const t=(e==null?void 0:e.intensity)||1,i=.03*t,r=1+i;return{effect:{timeline:{0:{transform:"scale3d(1, 1, 1)"},50:{transform:`scale3d(${r}, ${r}, ${r})`},100:{transform:"scale3d(1, 1, 1)"}}}}}function ie(e){const t=(e==null?void 0:e.intensity)||1;let i=Math.max(3,Math.floor(5*t));i%2==0&&i++;const r=100/(i-1),o={};let a=1;for(let d=0;d<i;d++)o[d===i-1?100:d*r]={opacity:a},a^=1;return{effect:{timeline:o}}}function re(e){const t=(e==null?void 0:e.intensity)||1;return{effect:{timeline:[{rotate:0,startTime:0},{rotate:15,startTime:20},{rotate:-10,startTime:40},{rotate:5,startTime:60},{rotate:-5,startTime:80},{rotate:0,startTime:100}].reduce((o,a)=>(o[a.startTime]={transform:`rotate3d(0, 0, 1, ${a.rotate*t}deg)`},o),{})}}}function oe(e){const t=(e==null?void 0:e.intensity)||1;return{effect:{timeline:[{xTranslate:0,rotate:0,startTime:0},{xTranslate:-25,rotate:-5,startTime:15},{xTranslate:20,rotate:3,startTime:30},{xTranslate:-15,rotate:-3,startTime:45},{xTranslate:10,rotate:2,startTime:60},{xTranslate:-5,rotate:-1,startTime:75},{xTranslate:0,rotate:0,startTime:100}].reduce((o,a)=>(o[a.startTime]={transform:`translate3d(${a.xTranslate*t}%, 0px, 0px) rotate3d(0, 0, 1, ${a.rotate*t}deg)`},o),{})}}}function ae(e){const t=(e==null?void 0:e.intensity)||1;return{effect:{timeline:[{stepTime:0,scaleDiff:[0,0,0]},{stepTime:30,scaleDiff:[.25,-.25,0]},{stepTime:40,scaleDiff:[-.25,.25,0]},{stepTime:50,scaleDiff:[.15,-.15,0]},{stepTime:65,scaleDiff:[-.05,.05,0]},{stepTime:75,scaleDiff:[.05,-.05,0]},{stepTime:100,scaleDiff:[0,0,0]}].reduce((o,a)=>{const d=a.scaleDiff.map(m=>m*t+1).join(",");return o[a.stepTime]={transform:`scale3d(${d})`},o},{})}}}function se(e){const t=(e==null?void 0:e.intensity)||1,i=[{translateX:0},{translateX:-10},{translateX:10},{translateX:-10},{translateX:10},{translateX:-10},{translateX:10},{translateX:-10},{translateX:10},{translateX:-10},{translateX:0}],r=100/(i.length-1);return{effect:{timeline:i.reduce((a,d,m)=>(a[m*r]={transform:`translate3d(${d.translateX*t}px, 0, 0)`},a),{})}}}const D=[{presetKey:"none",triggers:s,name:n("ui.none"),visibleOnQuickMenu:!0},{presetKey:"fadeInCombo",triggers:s,name:n("ui.animations.new.presets.combo.Fade_in"),reversibleName:n("ui.animations.new.presets.combo.Fade"),damDescriptor:e=>e.dir==="in-place"?L(e.duration):Q(e),additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"in-place",label:n("ui.animations.new.directions.In_place")},{value:"right",label:n("ui.animations.new.directions.From_right"),reversedLabel:n("ui.animations.new.directions.From_right.reversed")},{value:"left",label:n("ui.animations.new.directions.From_left"),reversedLabel:n("ui.animations.new.directions.From_left.reversed")},{value:"up",label:n("ui.animations.new.directions.From_bottom"),reversedLabel:n("ui.animations.new.directions.From_bottom.reversed")},{value:"down",label:n("ui.animations.new.directions.From_top"),reversedLabel:n("ui.animations.new.directions.From_top.reversed")}]}]},{presetKey:"fadeIn",triggers:s,name:n("ui.animations.new.presets.Fade_in"),equivalent:{presetKey:"fadeInCombo",options:{dir:"in-place"}},visibleOnQuickMenu:!0},{presetKey:"fadeInRight",triggers:s,name:n("ui.animations.new.presets.Fade_in_from_Right"),equivalent:{presetKey:"fadeInCombo",options:{dir:"right"}}},{presetKey:"fadeInLeft",triggers:s,name:n("ui.animations.new.presets.Fade_in_from_Left"),equivalent:{presetKey:"fadeInCombo",options:{dir:"left"}}},{presetKey:"fadeInUp",triggers:s,name:n("ui.animations.new.presets.Fade_in_from_Bottom"),equivalent:{presetKey:"fadeInCombo",options:{dir:"up"}}},{presetKey:"slideInCombo",triggers:s,name:n("ui.animations.new.presets.combo.Slide_in"),reversibleName:n("ui.animations.new.presets.combo.Slide"),damDescriptor:e=>T(Object.assign({from:e.dir},e)),additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"right",label:n("ui.animations.new.directions.From_right"),reversedLabel:n("ui.animations.new.directions.From_right.reversed")},{value:"left",label:n("ui.animations.new.directions.From_left"),reversedLabel:n("ui.animations.new.directions.From_left.reversed")},{value:"up",label:n("ui.animations.new.directions.From_bottom"),reversedLabel:n("ui.animations.new.directions.From_bottom.reversed")},{value:"down",label:n("ui.animations.new.directions.From_top"),reversedLabel:n("ui.animations.new.directions.From_top.reversed")}]}]},{presetKey:"slideInRight",triggers:s,name:n("ui.animations.new.presets.Slide_in_from_right"),equivalent:{presetKey:"slideInCombo",options:{dir:"right"}},visibleOnQuickMenu:!0},{presetKey:"slideInLeft",triggers:s,name:n("ui.animations.new.presets.Slide_in_from_left"),equivalent:{presetKey:"slideInCombo",options:{dir:"left"}}},{presetKey:"slideInDown",triggers:s,name:n("ui.animations.new.presets.Slide_in_from_top"),equivalent:{presetKey:"slideInCombo",options:{dir:"down"}}},{presetKey:"slideInUp",triggers:s,name:n("ui.animations.new.presets.Slide_in_from_bottom"),equivalent:{presetKey:"slideInCombo",options:{dir:"up"}}},{presetKey:"bounceInCombo",triggers:s,name:n("ui.animations.new.presets.combo.Bounce_in"),reversibleName:n("ui.animations.new.presets.combo.bounce"),damDescriptor:e=>G(e),additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"in-place",label:n("ui.animations.new.directions.In_place")},{value:"right",label:n("ui.animations.new.directions.From_right"),reversedLabel:n("ui.animations.new.directions.From_right.reversed")},{value:"left",label:n("ui.animations.new.directions.From_left"),reversedLabel:n("ui.animations.new.directions.From_left.reversed")},{value:"down",label:n("ui.animations.new.directions.From_bottom"),reversedLabel:n("ui.animations.new.directions.From_bottom.reversed")},{value:"up",label:n("ui.animations.new.directions.From_top"),reversedLabel:n("ui.animations.new.directions.From_top.reversed")}]}]},{presetKey:"bounceIn",triggers:s,name:n("ui.animations.new.presets.Bounce_In"),equivalent:{presetKey:"bounceInCombo",options:{dir:"in-place"}},visibleOnQuickMenu:!0},{presetKey:"bounceInRight",triggers:s,name:n("ui.animations.new.presets.Bounce_in_from_Right"),equivalent:{presetKey:"bounceInCombo",options:{dir:"right"}}},{presetKey:"bounceInLeft",triggers:s,name:n("ui.animations.new.presets.Bounce_in_from_Left"),equivalent:{presetKey:"bounceInCombo",options:{dir:"left"}}},{presetKey:"rotateInCombo",triggers:s,name:n("ui.animations.new.presets.combo.Rotate_in"),reversibleName:n("ui.animations.new.presets.combo.Rotate"),damDescriptor:e=>k(e),additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"in-place",label:n("ui.animations.new.directions.In_place")},{value:"topRight",label:n("ui.animations.new.directions.From_top_right"),reversedLabel:n("ui.animations.new.directions.From_top_right.reversed")},{value:"topLeft",label:n("ui.animations.new.directions.From_top_left"),reversedLabel:n("ui.animations.new.directions.From_top_left.reversed")},{value:"bottomRight",label:n("ui.animations.new.directions.From_bottom_right"),reversedLabel:n("ui.animations.new.directions.From_bottom_right.reversed")},{value:"bottomLeft",label:n("ui.animations.new.directions.From_bottom_left"),reversedLabel:n("ui.animations.new.directions.From_bottom_left.reversed")}]}]},{presetKey:"rotateIn",triggers:s,name:n("ui.animations.new.presets.RotateIn"),equivalent:{presetKey:"rotateInCombo",options:{dir:"in-place"}},visibleOnQuickMenu:!0},{presetKey:"rotateInDownLeft",triggers:s,name:n("ui.animations.new.presets.Rotate_in_from_top_right"),equivalent:{presetKey:"rotateInCombo",options:{dir:"topRight"}}},{presetKey:"rotateInDownRight",triggers:s,name:n("ui.animations.new.presets.Rotate_in_from_top_left"),equivalent:{presetKey:"rotateInCombo",options:{dir:"topLeft"}}},{presetKey:"rotateInUpLeft",triggers:s,name:n("ui.animations.new.presets.Rotate_in_from_bottom_right"),equivalent:{presetKey:"rotateInCombo",options:{dir:"bottomRight"}}},{presetKey:"rotateInUpRight",triggers:s,name:n("ui.animations.new.presets.Rotate_in_from_bottom_left"),equivalent:{presetKey:"rotateInCombo",options:{dir:"bottomLeft"}}},{presetKey:"rollInCombo",triggers:s,name:n("ui.animations.new.presets.combo.Roll_in"),reversibleName:n("ui.animations.new.presets.combo.Roll"),damDescriptor:e=>ee(e),additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"right",label:n("ui.animations.new.directions.From_right"),reversedLabel:n("ui.animations.new.directions.From_right.reversed")},{value:"left",label:n("ui.animations.new.directions.From_left"),reversedLabel:n("ui.animations.new.directions.From_left.reversed")}]}]},{presetKey:"rollInFromRight",triggers:s,name:n("ui.animations.new.presets.Roll_in_from_right"),equivalent:{presetKey:"rollInCombo",options:{dir:"right"}},visibleOnQuickMenu:!0},{presetKey:"rollInFromLeft",name:n("ui.animations.new.presets.Roll_in_from_left"),equivalent:{presetKey:"rollInCombo",options:{dir:"left"}}},{presetKey:"zoomIn",triggers:s,name:n("ui.animations.new.presets.Zoom_In"),equivalent:{presetKey:"zoomInCombo",options:{dir:"in-place"}},visibleOnQuickMenu:!0},{presetKey:"zoomInCombo",triggers:s,name:n("ui.animations.new.presets.combo.Zoom_In"),reversibleName:n("ui.animations.new.presets.combo.Zoom"),damDescriptor:e=>e.dir==="in-place"?C(e):J(e),additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"in-place",label:n("ui.animations.new.directions.In_place")},{value:"right",label:n("ui.animations.new.directions.From_right"),reversedLabel:n("ui.animations.new.directions.From_right.reversed")},{value:"left",label:n("ui.animations.new.directions.From_left"),reversedLabel:n("ui.animations.new.directions.From_left.reversed")},{value:"up",label:n("ui.animations.new.directions.From_bottom"),reversedLabel:n("ui.animations.new.directions.From_bottom.reversed")},{value:"down",label:n("ui.animations.new.directions.From_top"),reversedLabel:n("ui.animations.new.directions.From_top.reversed")}]}]},{presetKey:"flipInHorizontally",triggers:s,name:n("ui.animations.new.presets.Flip_in_horizontally"),equivalent:{presetKey:"flipInCombo",options:{dir:"X"}},visibleOnQuickMenu:!0},{presetKey:"flipInCombo",triggers:s,name:n("ui.animations.new.presets.combo.flip_in"),reversibleName:n("ui.animations.new.presets.combo.Flip"),damDescriptor:e=>V(e),defaultValues:{viewportThresholds:{bottom:40}},additionalOptions:[{optionName:"dir",optionLabel:n("ui.animations.new.presets.label.Direction"),values:[{value:"X",label:n("ui.animations.new.directions.flipX")},{value:"Y",label:n("ui.animations.new.directions.flipY")}]}]},{presetKey:"flash",name:n("ui.animations.new.presets.combo.flash"),damDescriptor:ie,triggers:[f.ENTRANCE]},{presetKey:"pulse",name:n("ui.animations.new.presets.combo.pulse"),damDescriptor:ne,triggers:[f.ENTRANCE]},{presetKey:"rubberBand",name:n("ui.animations.new.presets.combo.rubberBand"),damDescriptor:ae,triggers:[f.ENTRANCE]},{presetKey:"shake",name:n("ui.animations.new.presets.combo.shake"),damDescriptor:se,triggers:[f.ENTRANCE]},{presetKey:"swing",name:n("ui.animations.new.presets.combo.swing"),damDescriptor:re,triggers:[f.ENTRANCE]},{presetKey:"tada",name:n("ui.animations.new.presets.combo.tada"),damDescriptor:te,triggers:[f.ENTRANCE]},{presetKey:"wobble",name:n("ui.animations.new.presets.combo.wobble"),damDescriptor:oe,triggers:[f.ENTRANCE]}];var le=l("yXPU"),de=l.n(le),me=l("E+oP"),ue=l.n(me),N=l("9xCd"),w=l("9iID"),S=l("cU+2");const ce=["options"],A="data-anim-extended",pe={top:`${w.a.get("editor.animations.viewportThreshold.top",0)}%`,bottom:`${w.a.get("editor.animations.viewportThreshold.bottom",0)}%`},Me={top:`${w.a.get("editor.animations.viewportThreshold.outEffects.top",0)}%`,bottom:`${w.a.get("editor.animations.viewportThreshold.outEffects.bottom",0)}%`},fe={duration:1,delay:0,intensity:1};function ge(e){var t;const i=Object.assign({},pe,e==null||(t=e.defaultValues)===null||t===void 0?void 0:t.viewportThresholds);return{reverse:!1,intensity:1,viewportThresholds:i}}function ve(e,t={}){const i=D.find(a=>a.presetKey===e.animation);if(i!=null&&i.equivalent)return ve(Object.assign({},e,{animation:i.equivalent.presetKey,options:Object.assign({},e.options,i.equivalent.options)}),t);const{options:r}=e,o=b()(e,ce);return Object.assign({options:Object.assign({},e.trigger==="entrance"?fe:{},e.trigger==="viewport"?ge(i):{},t,r)},o)}function be({animationData:e,device:t,deviceAnimationData:i}){const{animation:r,trigger:o,options:a}=i,d=Object.assign({},e,{[t]:r==="none"?{}:Object.assign({trigger:o,animation:r},a)});return!Object.values(d).some(u=>!ue()(u))?null:d}function je(e){return O.apply(this,arguments)}function O(){return O=de()(function*({selector:e,element:t=Object(S.f)(e)[0],deviceAnimationData:i,device:r,persist:o=()=>{}}){const{animation:a,trigger:d,options:m}=i,u=be({animationData:R(t),device:r,deviceAnimationData:i}),g=`data-anim-${r}`,p={[A]:ye(u),[g]:d==="entrance"?a:null};return Object(S.b)().inlineEdit.applyAnimation({element:t,animationData:{animation:a,trigger:d,options:m}}),o(p)}),O.apply(this,arguments)}function ye(e){return e?btoa(JSON.stringify(e)):null}function we(e){return e?JSON.parse(atob(e)):null}function R(e){return we(e.getAttribute(A))}function he(e,t){const i=(e==null?void 0:e[t])||(e==null?void 0:e[t===N.a.TABLET?N.a.DESKTOP:t])||{},r=Object.assign({},i);return delete r.animation,delete r.trigger,{animation:i.animation,trigger:i.trigger,options:r}}function Be({trigger:e,options:t}){const i=Object.assign({},t);return e==="viewport"&&(delete i.duration,delete i.delay),e==="entrance"&&(delete i.viewportThresholds,delete i.reverse),i}const xe=B()({MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"});function Ie(e){return R(e)}function Ee(e){const t=$(),i=Ie(e);if(i)return he(i,t);{let r=e.getAttribute(`data-anim-${t}`)||"";return!r&&t===xe.DESKTOP&&(r=e.getAttribute("data-anim")||e.getAttribute("data-current-anim")||""),{animation:r||"none",trigger:"entrance"}}}function Te(){return`[data-anim], [data-anim-${$()}], [data-current-anim], [${A}]`}function _(e=document){return Array.from(e.querySelectorAll(Te()))}function De(e,t=document){_(t).forEach(e)}function Ae(e){if(!P())return{};const t=[];["transition-delay","transition-duration","animation-delay","animation-duration"].forEach(o=>{e.style[o]==="unset"&&(t.push(o),e.style[o]="")});const i=getComputedStyle(e),r={delay:parseFloat(i.animationDelay)||0,duration:parseFloat(i.animationDuration)||1};return t.forEach(o=>{e.style.setProperty(o,"unset","important")}),r}function P(){return window.rtCommonProps["feature.flag.runtime.newAnimation.respectCssAnimationProps.enabled"]}function Oe(e,t={}){const i=D.find(r=>r.presetKey===e);return i!=null&&i.equivalent?D.find(o=>o.presetKey===i.equivalent.presetKey).damDescriptor(Object.assign({},t,i.equivalent.options)):i!=null&&i.damDescriptor?i.damDescriptor(t):null}function $(){var e;return(e=window)!==null&&e!==void 0&&e.$?window.$.layoutDevice&&window.$.layoutDevice.type||window.Parameters.LayoutParams._device:"desktop"}const h=[];function Fe(){if(window.dam)return;const e=window.rtCommonProps["feature.flag.runtime.newAnimation.jitAnimation.enabled"]||!1;window.dam=new x.DudaAnimationManager({jitAnimation:e});try{if(window.top!==window){var t;(t=window.top._damInstance)!==null&&t!==void 0&&t.disabled&&window.dam.disable(),window.top._damInstance=window.dam}}catch(i){}M(),Ce()}function Xe(){}function ze(){return window.dam}function M(){!window.dam||_().map(e=>new Promise(t=>{h.includes(e)?t():(F(e),requestAnimationFrame(t))})).reduce((e,t)=>e.then(t),Promise.resolve())}function F(e){Array.from(e.classList).filter(i=>i.startsWith("running-animation-")).forEach(i=>e.classList.remove(i));const t=()=>{Ke({element:e,animationData:Ee(e)})};setTimeout(()=>window.requestAnimationFrame(t),Re()),h.push(e)}function Ke({selector:e,element:t=document.querySelector(e),animationData:i}){t.style.setProperty("visibility","visible","important");const{animation:r,trigger:o="entrance",options:a={}}=i;if(!window.dam||((!0||r==="none")&&window.dam.getInstancesByElement(t).forEach(p=>p.remove()),r==="none"))return;const m=Oe(r,a)||(y[r]?{effect:y[r]}:null);if(m){var u,g;const p=window.dam.createAnimation(m);p.setTrigger(o);const _e=Ae(t);p.setOptions(Object.assign({duration:1,easing:(m==null||(u=m.effect)===null||u===void 0||(g=u.defaultOptions)===null||g===void 0?void 0:g.easing)||"linear"},_e,a,m.options||{})),t.style.transition="",p.apply(t),P()&&Le(t)}}function Le(e){["transition-delay","transition-duration","animation-delay","animation-duration"].forEach(t=>{e.style.setProperty(t,"unset","important")}),e.style.setProperty("transition-property","none","important")}function Ce(){const e=i=>{i.forEach(r=>{(r.addedNodes?Array.from(r.addedNodes):[]).filter(a=>a.nodeType===Node.ELEMENT_NODE).map(a=>a.parentNode||a).forEach(a=>{De(d=>{setTimeout(()=>{h.includes(d)||(!d.getBoundingClientRect().width&&!d.getBoundingClientRect().height?setTimeout(()=>{h.includes(d)||F(d)},500):F(d))})},a)})})};new MutationObserver(e).observe(document.body,{childList:!0,subtree:!0})}function Ne(e){return window.rtCommonProps[e]||!1}function Se(){var e,t;return((e=window.$)===null||e===void 0||(t=e.layoutDevice)===null||t===void 0?void 0:t.type)==="mobile"}function Re(){return Ne("feature.flag.runtime.newAnimation.asyncInit.setTimeout.enabled")&&Se()?350:0}}}])})();